package com.zx.framework.plat;

import javax.annotation.Resource;

import org.apache.log4j.Logger;

import com.zx.framework.plat.company.service.CompanyService;
import com.zx.framework.plat.dept.service.DeptService;
import com.zx.framework.plat.module.service.ModuleService;
import com.zx.framework.plat.param.service.ParamService;
import com.zx.framework.plat.role.service.RoleService;
import com.zx.framework.plat.user.service.UserService;
import com.zx.framework.plat.user.vo.UserVo;
import com.zx.framework.web.controller.BaseController;
/**
 * plat模块的基础controller
 * @author Administrator
 *
 */
public class PlatController extends BaseController {
	
	@Resource
	protected UserService userService;
	@Resource
	protected RoleService roleService;
	@Resource
	protected ParamService paramService;
	@Resource
	protected ModuleService moduleService;
	@Resource
	protected DeptService deptService;
	@Resource
	protected CompanyService companyService;
	/**
	 * 获取登录用户
	 * @return
	 */
	public UserVo getLoginUser(){
		return getSessionObject(SESSION_KEY, UserVo.class);
	}
}
